<template>
    <div class="query-wrap">
        <div class="p-header">
            <div style="display:flex;" class="p-wrap">
                <div class="p-logo">
                    <img src="/static/images/mobile_logo.png" height="100%" title="珊瑚数卡">
                </div>
                <div class="m-order-query">
                    <el-button size="mini" class="order-query" round @click="orderQuery">回到首页</el-button>
                </div>
            </div>
        </div>
        <div class="mobile-header">
            <div class="m-logo">
                <img src="/static/images/mobile_logo.png" width="100%" title="珊瑚数卡">
            </div>
            <div class="m-order-query">
                <el-button size="mini" class="order-query" round @click="orderQuery">回到首页</el-button>
            </div>
        </div>
        <el-card class="box-card search-order">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item class="o-q-a">
                    <el-select v-model="formInline.region" placeholder="订单类型">
                        <el-option label="手工订单" value="shanghai"></el-option>
                        <el-option label="自动订单" value="beijing"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item class="o-q-b">
                    <el-input v-model="formInline.user" placeholder="请输入内容"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">查询</el-button>
                </el-form-item>
            </el-form>
        </el-card>
        <el-card class="box-card">
            <el-table :data="tableData" stripe style="width: 100%">
                <el-table-column prop="id" label="ID" width="120"></el-table-column>
                <el-table-column prop="name" label="订单名称" width></el-table-column>
                <el-table-column prop="type" label="订单类型" width></el-table-column>
                <el-table-column prop="amount" label="充值数量" width></el-table-column>
                <el-table-column prop="price" label="单价" width></el-table-column>
                <el-table-column prop="amountPrice" label="订单总价" width></el-table-column>
                <el-table-column prop="acc" label="充值账号" width="120"></el-table-column>
                <el-table-column prop="payType" label="支付方式" width></el-table-column>
                <el-table-column prop="state" label="状态" width></el-table-column>
                <el-table-column prop="date" label="下单时间" width></el-table-column>
                <el-table-column prop="option" label="操作"></el-table-column>
            </el-table>
        </el-card>
        <div class="hmbb">
            <img src="/static/images/hmbb.png">
        </div>
    </div>
</template>

<script>
export default {
    name: "orderQuery",
    data() {
        return {
            formInline: {
                user: "",
                region: ""
            },
            tableData: [
                {
                    id: "2016-05-02",
                    name: "CF点卡",
                    type: "网游点卡",
                    amount: "12",
                    price: "24",
                    acc:"huangniu8822",
                    amountPrice: "360",
                    payType: "支付宝",
                    state: "已完成",
                    date: "2018-12-12",
                    option: "冻结"
                },
                {
                    id: "2016-05-02",
                    name: "CF点卡",
                    type: "网游点卡",
                    amount: "12",
                    price: "24",
                    acc:"huangniu8822",
                    amountPrice: "360",
                    payType: "支付宝",
                    state: "已完成",
                    date: "2018-12-12",
                    option: "冻结"
                },
                {
                    id: "2016-05-02",
                    name: "CF点卡",
                    type: "网游点卡",
                    amount: "12",
                    price: "24",
                    acc:"huangniu8822",
                    amountPrice: "360",
                    payType: "支付宝",
                    state: "已完成",
                    date: "2018-12-12",
                    option: "冻结"
                },
                {
                    id: "2016-05-02",
                    name: "CF点卡",
                    type: "网游点卡",
                    amount: "12",
                    price: "24",
                    acc:"huangniu8822",
                    amountPrice: "360",
                    payType: "支付宝",
                    state: "已完成",
                    date: "2018-12-12",
                    option: "冻结"
                }
            ]
        };
    },
    methods: {
        onSubmit() {
            console.log("submit!");
        },
        orderQuery() {
            this.$router.push({
                path: "/goodList/1"
            });
        }
    }
};
</script>

<style scoped>
.order-query {
    background: #fff;
    color: #fd7f83;
    float: right;
    border: 2px solid #fff;
}
</style>
